package com.example.zhaohang.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.example.zhaohang.bingzhuangtu.R;
import com.example.zhaohang.holder.RecvcleViewHolder;

import java.util.List;

/**
 * Created by 赵航 on 2017/5/16.
 */

public class HandViewAdpter extends RecyclerView.Adapter {
    private List mList;

    public HandViewAdpter(List<Object> list) {
        mList = list;

    }

    @Override
    public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {


        View view = View.inflate(parent.getContext(), R.layout.item_layout, null);
        return new RecvcleViewHolder(view);
    }

    @Override
    public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return mList.size();
    }
}
